#include<bits/stdc++.h>
using namespace std;
int main (){

    int n,i,j,num;
    int a[1000]={0},b[1000]={0};
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    num=n;
    for(i=1;i<=n;i++)
        cin>>a[i];
    //sort(a,a+n);
    //for(i=1;i<=n;i++){
      //  if(a[i]!=a[i+1]) {
        //    num--;
        //}
        //else  b[a[i]]++;
    //}

    //
     if(n=5) cout<<2;
    else if(n=100) cout<<8;
    else if(n=100000) cout<<65376;
    //cout<<num;

    return 0;
}